package com.mytest.mspark.util;

import static spark.Spark.*;

public class Test {

    public static void main(String[] args){
        port(8080);
        get("/hello", (req, res) -> "Hello World My first test ");
        
 	   // matches "GET /hello/foo" and "GET /hello/bar"
 	   // request.params(":name") is 'foo' or 'bar'
 	   get("/test/getName/:name", (request, response) -> {
 		  return "Hello: " + request.params(":name");
 	   });
    }
}
